import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:niuren_demo/page/dynamic/contant/transaction/entrust_page.dart';
import 'package:niuren_demo/view/dynamic_page/jk_over_scroll_behavior.dart';

class TransactionPage extends StatefulWidget {
  @override
  _TransactionPageState createState() => _TransactionPageState();
}

class _TransactionPageState extends State<TransactionPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        height: 670,
        child: ScrollConfiguration(
          behavior: JKOverScrollBehavior(),
          child: DefaultTabController(
            length: 3,
            child: Column(
              children: [
                Container(
                  color: Colors.white,
                  height: 44,
                  child: TabBar(
                    indicator: const BoxDecoration(),
                    labelColor: Colors.black,
                    labelStyle: TextStyle(fontWeight: FontWeight.bold),
                    unselectedLabelColor: Colors.grey,
                    tabs: <Widget>[
                      Tab(text: '委托记录'),
                      Tab(text: "交易记录"),
                      Tab(text: "跟随人员"),
                    ],
                  ),
                ),
                Expanded(
                  child: TabBarView(
                    children: <Widget>[
                      EntrustPage(),
                      EntrustPage(),
                      EntrustPage()
                    ],
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
